package com.fengye.algorithms.leecode;

import java.util.Arrays;

/**
 * @Author fengye
 * @Date 2023/4/8 11:11
 **/
public class MergeTwoArray88 {
    public void merge(int[] nums1, int m, int[] nums2, int n) {
        if(n == 0) {
            return;
        }

        System.arraycopy(nums2, 0, nums1, m, n);
        Arrays.sort(nums1);
    }
}
